<?php

/*
 * This file will be used for setting the show and hide of rows in the search results for the pagination.
 * 
 * Created by: Peter Agno Jr.
 * Date created: November 18, 2011
 * 
 * In parameters: none
 * Out parameters: none
 */
?>

    // START - SET THE VISIBILITY OF THE ROW FOR PAGINATION
        if ( hideRow == false ) {
            if ( rowCount <= viewRowLimit )
                varRow = "<tr ";
            else {
                hideRow = true;
                pageNum++;
                rowCount = 1;
                varRow = "<tr style='display:none;' ";
            }
        }
        else {
            // HIDE THE SUCCEEDING ROWS
            if ( rowCount > viewRowLimit ) {
                pageNum++;
                rowCount = 1;
            }
            varRow = "<tr style='display:none;' ";
        }

        varRow += "class='rowPage_"+pageNum+"'> ";
        rowCount++;
    // END - SET THE VISIBILITY OF THE ROW FOR PAGINATION